.class Lcom/waiqin365/lightapp/im/adapter/bl;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/hyphenate/chat/EMMessage;

.field final synthetic c:Lcom/waiqin365/lightapp/im/adapter/bk;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/adapter/bk;ILcom/hyphenate/chat/EMMessage;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    iput p2, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->a:I

    iput-object p3, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v0

    const-class v2, Lcom/waiqin365/lightapp/im/activity/AlertDialog;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "msg"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v2

    const v3, 0x7f0802e9

    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v2

    const v3, 0x7f080311

    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "cancel"

    const/4 v2, 0x1

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "position"

    iget v2, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->a:I

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->b(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const/4 v2, 0x0

    iput-boolean v2, v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getType()Lcom/hyphenate/chat/EMMessage$Type;

    move-result-object v0

    sget-object v2, Lcom/hyphenate/chat/EMMessage$Type;->TXT:Lcom/hyphenate/chat/EMMessage$Type;

    if-ne v0, v2, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v0

    const/4 v2, 0x5

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getType()Lcom/hyphenate/chat/EMMessage$Type;

    move-result-object v0

    sget-object v2, Lcom/hyphenate/chat/EMMessage$Type;->VOICE:Lcom/hyphenate/chat/EMMessage$Type;

    if-ne v0, v2, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v0

    const/4 v2, 0x6

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getType()Lcom/hyphenate/chat/EMMessage$Type;

    move-result-object v0

    sget-object v2, Lcom/hyphenate/chat/EMMessage$Type;->IMAGE:Lcom/hyphenate/chat/EMMessage$Type;

    if-ne v0, v2, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v0

    const/4 v2, 0x7

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getType()Lcom/hyphenate/chat/EMMessage$Type;

    move-result-object v0

    sget-object v2, Lcom/hyphenate/chat/EMMessage$Type;->LOCATION:Lcom/hyphenate/chat/EMMessage$Type;

    if-ne v0, v2, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v0

    const/16 v2, 0x8

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getType()Lcom/hyphenate/chat/EMMessage$Type;

    move-result-object v0

    sget-object v2, Lcom/hyphenate/chat/EMMessage$Type;->FILE:Lcom/hyphenate/chat/EMMessage$Type;

    if-ne v0, v2, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v0

    const/16 v2, 0xa

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getType()Lcom/hyphenate/chat/EMMessage$Type;

    move-result-object v0

    sget-object v2, Lcom/hyphenate/chat/EMMessage$Type;->VIDEO:Lcom/hyphenate/chat/EMMessage$Type;

    if-ne v0, v2, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bl;->c:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v0

    const/16 v2, 0xe

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0
.end method
